package site.anxuan.seckill.service;

import site.anxuan.seckill.entity.Item;

import java.util.List;

public interface ItemService {

    List<Item> getListOnPromotion();

    Item getById(Integer itemId);

    Item getByIdFromCache(Integer itemId);

    void asyncIncreaseSales(int itemId, int amount);

    boolean increaseSales(int itemId, int amount);

}
